package com.bbzn.device.client.dao.strategy;

import com.bbzn.device.client.dataobject.OrderStrategy;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface OrderStrategyMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(OrderStrategy record);

    int insertOrUpdate(OrderStrategy record);

    int insertOrUpdateSelective(OrderStrategy record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(OrderStrategy record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    OrderStrategy selectByPrimaryKey(Integer id);

    OrderStrategy findByChannelCode(@Param("channelCode") Integer channelCode);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(OrderStrategy record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(OrderStrategy record);

    List<OrderStrategy> findByAll(OrderStrategy orderStrategy);

    int updateBatch(List<OrderStrategy> list);

    int updateBatchSelective(List<OrderStrategy> list);

    int batchInsert(@Param("list") List<OrderStrategy> list);
}